﻿//-----------------------------------------------------------------------
// <copyright file="NewMessagePopupViewModel.cs" company="AFS">
// Copyright (c) AFS. All rights reserved.
//
//    This file is part of Chatbox.
//
//    Chatbox is free software: you can redistribute it and/or modify
//    it under the terms of the GNU Lesser General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    any later version.
//
//    Chatbox is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//    GNU Lesser General Public License for more details.
//
//    You should have received a copy of the GNU Lesser General Public License
//    along with Chatbox. If not, see http://www.gnu.org/copyleft/lesser.html
// </copyright>
//----------------------------------------------------------------------- 
namespace ChatBox.UI.Windows.NewMessagePopup
{
    using System.Windows.Documents;

    using ChatBox.UI.ViewModels;

    /// <summary>
    /// View model for the new message popup
    /// </summary>
    public class NewMessagePopupViewModel : WindowViewModel
    {
        /// <summary>
        /// The document to display
        /// </summary>
        private FlowDocument document;

        /// <summary>
        /// The text to show as a title
        /// </summary>
        private string titleText;

        /// <summary>
        /// Gets or sets the document to display
        /// </summary>
        public FlowDocument Document
        {
            get
            {
                return this.document;
            }

            set
            {
                if (this.document != value)
                {
                    this.document = value;
                    this.OnPropertyChanged("Document");
                }
            }
        }

        /// <summary>
        /// Gets or sets the title text
        /// </summary>
        public string TitleText
        {
            get
            {
                return this.titleText;
            }

            set
            {
                if (this.titleText != value)
                {
                    this.titleText = value;
                    this.OnPropertyChanged("TitleText");
                }
            }
        }
    }
}
